<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022/7/14
  Time: 23:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>java在线网盘系統-后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/static/layui/css/layui.css" media="all">
    <script src="${ctx}/static/layui/layui.js"></script>
</head>
<body style="padding:30px;height: 100%;">
<blockquote class="layui-elem-quote" style="text-align: center;">
    回收站列表
</blockquote>
<table class="layui-table">
    <tr class="layui-bg-green">

        <th>文件名</th>
        <th>文件类型</th>
        <th>大小</th>
        <th>上传时间</th>
        <th>上传用户</th>
        <th>删除</th>
        <th>还原</th>
    </tr>
    <c:forEach var="list" items="${requestScope.fileList }">
        <tr>
            <td>${list.name }</td>
            <td>${list.fileType }</td>
            <td>${list.size } KB</td>
            <td>${list.uploadTime }</td>
            <td>${list.uploadUser.username }</td>
            <td><a href="delete?file=${list.id }&folder=${list.fatherFolder.id}">
                <img src="/cloud/images/delete.png"
                     alt="status"/>
            </a></td>
                <td>
                    <a href="setAccess?file=${list.id }&folder=${list.fatherFolder.id}&status=${0}"><img src="/cloud/images/public.png"
                                                                                              alt="status"/></a>
                </td>


        </tr>
    </c:forEach>
</table>
</body>
</html>
